package com.tourism.core.cn.dto;
/*********************************************************************
 Copyright(c) 2024 All Rights Reserved .
 Author : liliang
 CreatedOn : 2024/12/30 23:04
 Email : 2061996582@qq.com
 Describe : 注册DTO
 UseCase :
 Version : 2024|V1.0.0.0
 **********************************************************************/

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author new
 * @date 2024/12/30 23:04
 */
@Data
public class RegisterDto {
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String mobile;

    @NotBlank(message = "验证码不能为空")
    private String code;

    private String password;
    private String username;
    private String nickname;
    private String email;
    private Integer gender;
}
